//搜索框事件

$('.search-divbutton').click(
function(e){
	e.preventDefault();
	console.log(1111);
	window.location.href = WST.U('WebApp/Orders/getMsgDetail');
	}
	
)
//点赞事件
$('.imglist-img').click(
function(e){
	e.preventDefault();
	$('.second-levelmenu').css('display','block');
	$('.imglist-img').css('display','none');
	$('.imglist-img1').css('display','block');
	}
	
)
$('.imglist-img1').click(
function(e){
	e.preventDefault();
	$('.second-levelmenu').css('display','none');
	$('.imglist-img1').css('display','none');
	$('.imglist-img').css('display','block');
	}
	
)
//评论事件
$('.commenton-img').click(
function(e){
	e.preventDefault();
	$('.commentary').css('display','block');
	$('.commenton-img').css('display','none');
	$('.commenton-img1').css('display','block');
	}
	
)
$('.commenton-img1').click(
function(e){
	e.preventDefault();
	$('.commentary').css('display','none');
	$('.commenton-img1').css('display','none');
	$('.commenton-img').css('display','none');
	$('.commenton-img3').css('display','block');
	
	}
	
)
$('.commenton-img3').click(
function(e){
	e.preventDefault();
	$('.commentary').css('display','block');
	$('.commenton-img').css('display','none');
	$('.commenton-img1').css('display','block');
	$('.commenton-img3').css('display','none');
	}
	
)
$('.commenton-img1').click(
function(e){
	e.preventDefault();
	$('.commentary').css('display','none');
	$('.commenton-img1').css('display','none');
	$('.commenton-img').css('display','none');
	$('.commenton-img3').css('display','block');
	$('.commentary-input').css('display','none');
	}
	
)

//点赞时改变的样式
$('.commentary-img').click(
	function(e){
		e.preventDefault();
		console.log(111);
//  	$(".commentary-img")[0].src; 
	    $('.commentary-img').attr('src', WST.ROOT +'/Apps/WebApp/View/default/images/agent/zan.png');  
	}
)
$('.thumbs-up-img').click(
	function(e){
		e.preventDefault();
		console.log(111);
//  	$(".commentary-img")[0].src; 
	    $('.thumbs-up-img').attr('src', WST.ROOT +'/Apps/WebApp/View/default/images/agent/copy22x2.png');  
	}
)

//回复点击事件
$('.Reply').click(
function(e){
	e.preventDefault();
	$('.commentary-input').css('display','block');
	$('.Reply').css('display','none');
	$('.Reply1').css('display','block');
	$('.Reply2').css('display','none');
	}
	
)
$('.Reply1').click(
function(e){
	e.preventDefault();
	$('.commentary-input').css('display','none');
	$('.Reply1').css('display','none');
	$('.Reply').css('display','block');
	$('.Reply2').css('display','none');
	}
	
)
$('.Reply2').click(
function(e){
	e.preventDefault();
	$('.commentary-input').css('display','block');
	$('.Reply1').css('display','block');
	$('.Reply').css('display','none');
	$('.Reply2').css('display','none');
	}
	
)
//回复二级菜单图片
$('.Replycontent-button').click(
function(e){
	e.preventDefault();
	console.log(1111);
	 $('.Replycontent-buttonImg').attr('src', WST.ROOT +'/Apps/WebApp/View/default/images/my_bookshelf_icon_left_nor1.png');
	$('.Replycontentcommentary').css('display','block');
}
)
//二级菜单回复
$('.Reply-1').click(
function(e){
	e.preventDefault();
	$('.commentary-input1').css('display','block');
	$('.Reply-1').css('display','none');
	$('.Reply1-1').css('display','block');
	$('.Reply2-1').css('display','none');
	}
	
)
$('.Reply1-1').click(
function(e){
	e.preventDefault();
	$('.commentary-input1').css('display','none');
	$('.Reply1-1').css('display','none');
	$('.Reply-1').css('display','block');
	$('.Reply2-1').css('display','none');
	}
	
)
$('.Reply2-1').click(
function(e){
	e.preventDefault();
	$('.commentary-input1').css('display','block');
	$('.Reply1-1').css('display','block');
	$('.Reply-1').css('display','none');
	$('.Reply2-1').css('display','none');
	}
	
)

